<?php 
include_once('config.php');
include('log.php');
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Bootstrap Tutorial</title>
    <meta name="description" content="Bootstrap Tab + Fixed Sidebar Tutorial with HTML5 / CSS3 / JavaScript">
    <meta name="author" content="Untame.net">

    <script src="jquery/2.0.0/jquery.min.js"></script>
    <script src="dist/js/bootstrap.min.js"></script>
    <link href="dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <style type="text/css">
        body { background-color:#fff; }
        .hero-unit { background-color: #eee; }
        .center { display: block; margin: 0 auto; }
    </style>
</head>

<body>

<div class="navbar navbar-fixed-top navbar-inverse">
  <div class="navbar-inner">
    <div class="container">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>
      <a class="brand"><?php include('header.php');?></a>
      <div class="nav-collapse">
        <ul class="nav pull-right">
          <?php
			$username = $_SESSION['username'];
			$query_user_login = mysql_query("select * from users where username='$username'");
			$user_login = mysql_fetch_array($query_user_login);
	?>
          <li><a href="admin.php">Profile</a></li>
          <li class="divider-vertical"></li>
          <li class="active"><a href="manage.php">Manage</a></li>
          <li class="divider-vertical"></li>
          <li class="dropdown">
  			<button class="btn dropdown sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
    		<?php echo $user_login['fullname']; ?>
    		<span class="caret"></span>
  			</button>
  			<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Setting</a></li>
                <li role="presentation" class="divider"></li>
                <li role="presentation"><a role="menuitem" tabindex="-1" href="logout.php">Log Out</a></li>
  			</ul>
		  </li>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>
    
<div class="container hero-unit">
<ul class="nav nav-pills nav-tabs">
  <li><a href="news.php">News</a></li>
  <li><a href="doc.php">Document</a></li>
  <li><a href="user.php">User</a></li>
  <li><a href="msg.php">Message</a></li>
</ul>
</div>
<div class="modal-footer">
    <?php include('footer.php'); ?>
</div>
</body>
</html>